package com.dianrui.agent.activity;

import android.view.View;
import android.widget.TextView;


import com.dianrui.agent.R;
import com.dianrui.agent.util.StringUtils;

import butterknife.BindView;
import butterknife.OnClick;

public class AccountSecurityActivity extends BaseActivity {
    @BindView(R.id.title)
    TextView title;
    @BindView(R.id.act_account_security_tv_vip_name)
    TextView tvVipName;
    @BindView(R.id.act_account_security_tv_moblie)
    TextView tvMoblie;

    @Override
    public int getContentViewId() {
        return R.layout.act_account_security;
    }

    @Override
    public void initView() {
        title.setText("账号与安全");
        if (!StringUtils.isEmpty((spUtils.getString("account")))) {
            tvVipName.setText(spUtils.getString("account"));
        }
        if (!StringUtils.isEmpty((spUtils.getString("mobile")))) {
            tvMoblie.setText(spUtils.getString("mobile"));
        }
    }

    @OnClick({R.id.back, R.id.act_account_security_ll_psw})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.back:
                finish();
                break;
            case R.id.act_account_security_ll_psw:
                JumpActivitys(ForgetLoginPwd.class);
                break;
                default:
                    break;
        }
    }
}
